package com.juneng.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author zds
 * @since 2021-07-13
 */
@Data
@ApiModel(value = "BookType对象", description = "BookType对象")
@TableName("book_type")
public class BookTypeChildren implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id")
    @TableId(value = "book_type_id", type = IdType.AUTO)
    private Long value;
    /**
     * 上级分类的编号
     */
    @ApiModelProperty(value = "上级分类的编号")
    private String label;


    @ApiModelProperty(value = "子元素")
    private List<BookTypeChildren> children;

}
